package com.msg.service.protocol;

import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSONObject;
import com.msg.service.LoginService;
import com.pjc.annotation.CliToSrv;
import com.pjc.annotation.Protocol;

/**
 * 用户登录协议
 * 
 * @author 王畅
 * @since 2015年6月14日
 */
@CliToSrv
public class CliLoginMsgHandler {

	protected static final Logger log = LoggerFactory.getLogger(LoginService.class);

	/**
	 * 201协议
	 * 
	 * @param session
	 * @param userId
	 * @param data
	 * @throws Exception
	 */
	@Protocol(protoId = 201)
	public static void LoginHandler(IoSession session, String userId, JSONObject data) throws Exception {
		LoginService.loginHander(session, userId, data);
	}
	
    

}
